package com.xiaomazi.acl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaomazi.acl.entity.Role;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {
    /**
     * 根据用户id获取角色
     * @param id userId
     * @return List<Role>
     */
    List<String> selectRoleByUserId(String id);
}
